using System;
using System.ComponentModel;
using System.Collections.Generic;

/// <summary>
/// Business entity class generated from OrderSummary
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-22]
/// </remarks>
namespace TVN.ShopMan.Entities
{
	public partial class OrderSummaryEntity
	{
		#region Properties
		
		public partial class Properties
		{
			public const string Id = "Id";
			public const string OrderName = "OrderName";
			public const string CalculationValue = "CalculationValue";
			public const string DiscountValue = "DiscountValue";
			public const string RealValue = "RealValue";
			public const string ActualDate = "ActualDate";
			public const string OrderType = "OrderType";
			public const string CreatedDate = "CreatedDate";
			public const string LastModifiedDate = "LastModifiedDate";
			public const string CreatedBy = "CreatedBy";
			public const string LastModifiedBy = "LastModifiedBy";
			public const string RepositoryId = "RepositoryId";
		}

		#endregion

		#region Private fields

		private long _id;
		private string _orderName;
		private System.Decimal _calculationValue;
		private System.Decimal _discountValue;
		private System.Decimal _realValue;
		private DateTime _actualDate;
		private string _orderType;
		private DateTime _createdDate;
		private DateTime? _lastModifiedDate;
		private AccountEntity _createdBy;
		private AccountEntity _lastModifiedBy;
		private RepositoryEntity _repositoryId;

		private IList<ImportDetailEntity> _importDetailsOrderId = new List<ImportDetailEntity>();
		private IList<SellDetailEntity> _sellDetailsOrderId = new List<SellDetailEntity>();

		#endregion

		#region Constructors

		public OrderSummaryEntity()
		{
		}

		#endregion

		#region Properties

		public long Id
		{
			get { return _id; }
		}

		public string OrderName
		{
			get { return _orderName; }
			set { _orderName = value; }
		}

		public System.Decimal CalculationValue
		{
			get { return _calculationValue; }
			set { _calculationValue = value; }
		}

		public System.Decimal DiscountValue
		{
			get { return _discountValue; }
			set { _discountValue = value; }
		}

		public System.Decimal RealValue
		{
			get { return _realValue; }
			set { _realValue = value; }
		}

		public DateTime ActualDate
		{
			get { return _actualDate; }
			set { _actualDate = value; }
		}

		public string OrderType
		{
			get { return _orderType; }
			set { _orderType = value; }
		}

		public DateTime CreatedDate
		{
			get { return _createdDate; }
			set { _createdDate = value; }
		}

		public DateTime? LastModifiedDate
		{
			get { return _lastModifiedDate; }
			set { _lastModifiedDate = value; }
		}

		public AccountEntity CreatedBy
		{
			get { return _createdBy; }
			set { _createdBy = value; }
		}

		public AccountEntity LastModifiedBy
		{
			get { return _lastModifiedBy; }
			set { _lastModifiedBy = value; }
		}

		public RepositoryEntity RepositoryId
		{
			get { return _repositoryId; }
			set { _repositoryId = value; }
		}

		public IList<ImportDetailEntity> ImportDetailsOrderId
		{
			get { return _importDetailsOrderId; }
			set { _importDetailsOrderId = value; }
		}
		public IList<SellDetailEntity> SellDetailsOrderId
		{
			get { return _sellDetailsOrderId; }
			set { _sellDetailsOrderId = value; }
		}
		#endregion

	} }

